<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>权限添加</title>
<link rel="stylesheet" rev="stylesheet" href="css/style.css" type="text/css" media="all" />
<link href="css/css.css" rel="stylesheet" type="text/css" />
<script src="js/jquery-1.9.0.js"></script>
<script src="js/jquery.validate.min.js"></script>
<script src="js/WarnMessages.js"></script>
<style type="text/css">
<!--
.atten {
	font-size: 12px;
	font-weight: normal;
	color: #F00;
}
-->
</style>
</head>
<script type="text/javascript">
/*****以下是表单验证****/
$(function(){
	
	$("#myform").validate({
	rules:{
			'permission.pname':{
			required:true
			}
		}
	});
    });
    /*****以上是表单验证****/	
</script>

<body class="ContentBody">

	<div class="MainDiv">
		<table width="99%" border="0" cellpadding="0" cellspacing="0"
			class="CContent">
			<tr>
				<th class="tablestyle_title">新建角色信息</th>
			</tr>
			<tr>
				<td class="CPanel">
					<table border="0" cellpadding="0" cellspacing="0"
						style="width:100%">
						<TR>
							<TD width="100%">
								<fieldset style="height:100%;">
									<legend>新建信息</legend>
									<form id="myform" action="admin/roleAdd" method="post" target="_top">
										<table border="0" cellpadding="2" cellspacing="1"
											style="width:400px">
											<tr>
												<td width="30">&nbsp;</td>
												<td align="right" width="60px">角色名称:</td>
												<td><input name="permission.pname" type="text"
													class="text" size="40" /></td>
											</tr>

											<tr>
												<td>&nbsp;</td>
												<td>&nbsp;</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td>&nbsp;</td>
												<td>&nbsp;</td>
												<td align="left"><input type="submit" class="right-button02" value="提交" />
													&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="reset" class="right-button02"
													value="重置" /></td>
											</tr>
										</table>
									</form>
									<br />
								</fieldset></TD>
						</TR>
						<tr>
							<td>&nbsp;</td>
						</tr>


					</TABLE></td>
			</tr>

		</TABLE>
		</td>
		</tr>
		</table>
	</div>

</body>
</html>
